package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 人员任务关系表
 *
 * @author code-generate
 * @date 2021-09-02
 */
@Data
@DbTable(tableName = "t_task_person_relation")
public class TaskPersonRelation extends BaseEntity {
        /**
     * 人员id
     */
    @DbTableField(columnName = "c_person_id", dbType = DbTypeEnum.INTEGER)
    public Integer personId ;

    @DbTableField(columnName = "c_person_name", dbType = DbTypeEnum.VARCHAR)
    public String personName ;

    /**
     * 任务id
     */
    @DbTableField(columnName = "c_task_id", dbType = DbTypeEnum.INTEGER)
    public Integer taskId ;

    /**
     * 创建时间
     */
//    @DbTableField(columnName = "c_db_create_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbCreateDate ;

    /**
     *  对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_create_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbCreateId ;

    /**
     * 最后更新时间
     */
//    @DbTableField(columnName = "c_db_last_update_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbLastUpdateDate ;

    /**
     *  对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_last_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbLastUpdateId ;


}
